export interface TableData {
  id: number
  title: string
  type: string
  sort_num: number
  course_id: number
  is_use: number
  hasChildren?: boolean
  children?: TableData[]
}

export interface SortData {
  id: number
  type: string
  sort_num: number
}

export interface SortDataRequest {
  data: SortData[]
}

export interface CreateOrUpdateTableRequestData {
  id?: number
  title: string
  course_id: number
  intro?: string
  sort_num: number
  is_use: number
}
